package com.buba.system.service.impl;

import com.buba.system.dao.LoginDao;
import com.buba.system.dao.impl.LoginDaoImpl;
import com.buba.system.pojo.UserInfo;
import com.buba.system.service.LoginService;

import java.util.Map;

public class LoginServiceImpl implements LoginService {
    LoginDao loginDao = new LoginDaoImpl();

    /**
     *  判断验证码
     * @param param
     * @return
     */
    @Override
    public boolean VerCode(Map<String, String> param, Object code) {
        String iden = param.get("iden");
        if (code.equals(iden))
            return true;
        return false;
    }

    /**
     * 登录
     * @param param
     * @return
     */
    @Override
    public UserInfo login(Map<String, String> param) {
        return loginDao.login(param);
    }





}
